package com.tencent.sr.iris.activity.dependency.qufa;

import com.tencent.sr.iris.activity.common.constant.QuFaHttpConstant;
import com.tencent.sr.iris.activity.common.util.QuFaHttpUtil;
import com.tencent.sr.iris.activity.interfaces.request.acticity.QueryUserPaymentInfoRequest;
import com.tencent.sr.iris.activity.interfaces.response.activity.QueryUserPaymentInfoResponse;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class UserPaymentInfoDependency {

    @Resource
    private QuFaHttpUtil quFaHttpUtil;

    /**
     * 查询用户下单情况
     *
     * @return
     */
    public QueryUserPaymentInfoResponse queryUserPaymentInfo(QueryUserPaymentInfoRequest request) {
        return quFaHttpUtil.postObject(QuFaHttpConstant.USER_PAYMENT_INFO, request, QueryUserPaymentInfoResponse.class);
    }
}
